<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.u p:nth-child(-n+5){
				background-color: orangered;
			}
			
			.u p:first-child{
				background-color: black;
			}
			
			.u p:last-child{
				font-size: 20px;
				font-style: italic;
			}
		</style>
	</head>
	
	<body>
		<div class="u">
			<p>1</p>
			<p>1</p>
			<p>1</p>
			<p>1</p>
			<p>1</p>
			<p>1</p>
			<p>1</p>
			<p>1</p>
			<p>1</p>
			<p>1</p>
			<p>1</p>
			<p>1</p>
			<p>1</p>
			<p>1</p>
			<p>1</p>
			<p>1</p>
		</div>
	</body>
</html>